From 709c6c4f7b5eec7833adf3d11a52e2806ca14c31 Mon Sep 17 00:00:00 2001 From: Debian Multimedia Maintainers Date: Wed, 28 Aug 2019 09:19:01 +0200 Subject: [PATCH] Fix typos Forwarded: https://github.com/jcacerec/jacktrip/pull/17 Last-Update: 2015-06-29 fixes some spelling errors in the printout Last-Update: 2015-06-29 Gbp-Pq: Name fix_typos.patch --- src/JackTrip.cpp | 2 +- src/Settings.cpp | 40 ++++++++++++++++++++-------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/JackTrip.cpp b/src/JackTrip.cpp index 0ae9f39..d00701d 100644 --- a/src/JackTrip.cpp +++ b/src/JackTrip.cpp @@ -539,7 +539,7 @@ int JackTrip::clientPingToServerStart() throw(std::invalid_argument) // -------------------- tcpClient.close(); // Close the socket //cout << "TCP Socket Closed!" << endl; - cout << "Connection Succesfull!" << endl; + cout << "Connection Successful!" << endl; // Set with the received UDP port // ------------------------------ diff --git a/src/Settings.cpp b/src/Settings.cpp index 21d9601..cc57b64 100644 --- a/src/Settings.cpp +++ b/src/Settings.cpp @@ -182,7 +182,7 @@ void Settings::parseInput(int argc, char** argv) else if ( atoi(optarg) == 32 ) { mAudioBitResolution = AudioInterface::BIT32; } else { - std::cerr << "--bitres ERROR: Wrong bit resolutions: " + std::cerr << "--bitres ERROR: Wrong bit resolution: " << atoi(optarg) << " is not supported." << endl; printUsage(); std::exit(1); } @@ -190,7 +190,7 @@ void Settings::parseInput(int argc, char** argv) case 'q': //------------------------------------------------------- if ( atoi(optarg) <= 0 ) { - std::cerr << "--queue ERROR: The queue has to be equal or greater that 2" << endl; + std::cerr << "--queue ERROR: The queue has to be equal or greater than 2" << endl; printUsage(); std::exit(1); } else { @@ -244,7 +244,7 @@ void Settings::parseInput(int argc, char** argv) case 'v': //------------------------------------------------------- cout << "JackTrip VERSION: " << gVersion << endl; - cout << "Copyright (c) 2008-2009 Juan-Pablo Caceres, Chris Chafe." << endl; + cout << "Copyright (c) 2008-2015 Juan-Pablo Caceres, Chris Chafe." << endl; cout << "SoundWIRE group at CCRMA, Stanford University" << endl; cout << "" << endl; std::exit(0); @@ -265,11 +265,11 @@ void Settings::parseInput(int argc, char** argv) //---------------------------------------------------------------------------- if (optind < argc) { cout << gPrintSeparator << endl; - cout << "WARINING: The following entered options have no effect" << endl; + cout << "WARINING: The following entered options have no effect." << endl; cout << " They will be ignored!" << endl; - cout << " Type jacktrip to see options." << endl; + cout << " Type 'jacktrip' to see options." << endl; for( ; optind < argc; optind++) { - printf("argument: %s\n", argv[optind]); + cout << "argument: " << argv[optind] << endl; } cout << gPrintSeparator << endl; } @@ -297,27 +297,27 @@ void Settings::printUsage() cout << endl; cout << "OPTIONAL ARGUMENTS: " << endl; cout << "===================" << endl; - cout << " -n, --numchannels # Number of Input and Output Channels (default " + cout << " -n, --numchannels # Number of Input and Output Channels (default: " << 2 << ")" << endl; - cout << " -q, --queue # (2 or more) Queue Buffer Length, in Packet Size (default " + cout << " -q, --queue # (2 or more) Queue Buffer Length, in Packet Size (default: " << gDefaultQueueLength << ")" << endl; - cout << " -r, --redundancy # (1 or more) Packet Redundancy to avoid glitches with packet losses (defaul 1)" + cout << " -r, --redundancy # (1 or more) Packet Redundancy to avoid glitches with packet losses (default: 1)" << endl; cout << " -o, --portoffset # Receiving port offset from base port " << gDefaultPort << endl; - cout << " --bindport # Set only the bind port number (default to 4464)" << endl; - cout << " --peerport # Set only the Peer port number (default to 4464)" << endl; - cout << " -b, --bitres # (8, 16, 24, 32) Audio Bit Rate Resolutions (default 16)" << endl; - cout << " -z, --zerounderrun Set buffer to zeros when underrun occurs (defaults to wavetable)" << endl; + cout << " --bindport # Set only the bind port number (default: 4464)" << endl; + cout << " --peerport # Set only the Peer port number (default: 4464)" << endl; + cout << " -b, --bitres # (8, 16, 24, 32) Audio Bit Rate Resolutions (default: 16)" << endl; + cout << " -z, --zerounderrun Set buffer to zeros when underrun occurs (default: wavetable)" << endl; cout << " -l, --loopback Run in Loop-Back Mode" << endl; cout << " -j, --jamlink Run in JamLink Mode (Connect to a JamLink Box)" << endl; - cout << " --clientname Change default client name (default is JackTrip)" << endl; - cout << " --localaddress Change default local host IP address (127.0.0.1)" << endl; + cout << " --clientname Change default client name (default: JackTrip)" << endl; + cout << " --localaddress Change default local host IP address (default: 127.0.0.1)" << endl; cout << endl; - cout << "ARGUMENTS TO USE IT WITHOUT JACK:" << endl; - cout << "=================================" << endl; - cout << " --rtaudio Use defaul sound system instead of Jack" << endl; - cout << " --srate # Set the sampling rate, works on --rtaudio mode only (defaults 48000)" << endl; - cout << " --bufsize # Set the buffer size, works on --rtaudio mode only (defaults 128)" << endl; + cout << "ARGUMENTS TO USE JACKTRIP WITHOUT JACK:" << endl; + cout << "=======================================" << endl; + cout << " --rtaudio Use system's default sound system instead of Jack" << endl; + cout << " --srate # Set the sampling rate, works on --rtaudio mode only (default: 48000)" << endl; + cout << " --bufsize # Set the buffer size, works on --rtaudio mode only (default: 128)" << endl; cout << endl; cout << "HELP ARGUMENTS: " << endl; cout << "===============" << endl; -- 2.30.2